package com.java2207.group1.mapper;

import com.java2207.group1.pojo.Discharge;
import com.java2207.group1.vo.discharge.BarVo;
import com.java2207.group1.vo.discharge.PieVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 15319 2022/7/25 17:47
 */
public interface DischargeMapper {


    List<Discharge> dischargePage(Map<String, Object> params);


    int dischargeUpdate(Discharge discharge);

    @Delete(value = "delete from nursinghome.t_discharge where id = #{id}")
    int dischargeDelete(Integer id);


    int dischargeAdd(Discharge hospitalized);



    int dischargeDeleteByIds(@Param("ids") String[] ids);

    List<BarVo> setBarDate();

    List<PieVo> setPieDate();


        Discharge dischargeById(Discharge discharge);
}
